#ifndef BASICXML_H
#define BASICXML_H

#include <QObject>
#include "BaseXml.h"
#include "DataType/DataType.h"
#include "DataType/PortStruct.h"
#include "DataType/DeviceStruct.h"

class BasicXml : public BaseXml<BasicXml>
{
public:

    friend class BaseXml<BasicXml>;

    bool parser();

    QList<PortStruct> portList() const;
    void setPortList(const QList<PortStruct> &portList);

    QList<DeviceStruct> deviceList() const;
    void setDeviceList(const QList<DeviceStruct> &deviceList);

    quint32 rebootIntervalTIme();
       void setRebootIntervalTime(quint32 t);

       quint8 rebootTimePoint();
       void setRebootTimePoint(quint8 t);

private:
    BasicXml();
    bool clear();
    QList<PortStruct> m_portList;
    QList<DeviceStruct> m_deviceList;
    quint32 m_rebootIntervalTIme;
        quint8 m_rebootTimePoint;
};

#endif // BASICXML_H
